<template>
  <div style="padding: 12px">
    <van-button block @click="doSearchResult(1)" type="primary" plain>第一单元</van-button>
  </div>
  <div style="padding: 12px">
    <van-button block @click="doSearchResult(2)" type="primary" plain>第二单元</van-button>
  </div>
  <div style="padding: 12px">
    <van-button block @click="doSearchResult(3)" type="primary" plain>第三单元</van-button>
  </div>
  <div style="padding: 12px">
    <van-button block @click="doSearchResult(4)" type="primary" plain>第四单元</van-button>
  </div>
  <div style="padding: 12px">
    <van-button block @click="doSearchResult(5)" type="primary" plain>第五单元</van-button>
  </div>
  <div style="padding: 12px">
    <van-button block @click="doSearchResult(6)" type="primary" plain>第六单元</van-button>
  </div>
</template>

<script setup>
import {ref} from "vue";
import {useRoute, useRouter} from "vue-router";
const router = useRouter();
const route = useRoute();
const questionType = route.query.tags;
const doSearchResult = (unitNum)=>{
  router.push({
    path:'/doJob/list',
    query:{
      questionUnit:unitNum,
      questionType:questionType
    }
  })
}
</script>

<style scoped>

</style>
